package Code.Menu.View;

import org.jrabbit.base.graphics.transforms.Vector2d;
import org.jrabbit.base.managers.window.WindowManager;
import org.jrabbit.standard.game.objects.Sprite;

public class Planet extends Sprite
{
	public Planet()
	{
		super("Resources/Images/Menu/Planet.png");
		scalar.set((float) (WindowManager.getDisplayWidth() * 1.3 / getWidth()));
		useScreenCoords(true);
		location.set(WindowManager.getDisplayWidth() / 2, WindowManager.getDisplayHeight() / 2);
	}

	public void adjustView(int delta, Vector2d offset)
	{
		location.set(WindowManager.getDisplayWidth() / 2, WindowManager.getDisplayHeight() * 0.6);
		location.add(offset, -0.1);
	}
}